package com.yidu.boss.sys.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class CustodianExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public CustodianExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCustodianidIsNull() {
            addCriterion("custodianId is null");
            return (Criteria) this;
        }

        public Criteria andCustodianidIsNotNull() {
            addCriterion("custodianId is not null");
            return (Criteria) this;
        }

        public Criteria andCustodianidEqualTo(String value) {
            addCriterion("custodianId =", value, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodianidNotEqualTo(String value) {
            addCriterion("custodianId <>", value, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodianidGreaterThan(String value) {
            addCriterion("custodianId >", value, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodianidGreaterThanOrEqualTo(String value) {
            addCriterion("custodianId >=", value, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodianidLessThan(String value) {
            addCriterion("custodianId <", value, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodianidLessThanOrEqualTo(String value) {
            addCriterion("custodianId <=", value, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodianidLike(String value) {
            addCriterion("custodianId like", value, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodianidNotLike(String value) {
            addCriterion("custodianId not like", value, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodianidIn(List<String> values) {
            addCriterion("custodianId in", values, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodianidNotIn(List<String> values) {
            addCriterion("custodianId not in", values, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodianidBetween(String value1, String value2) {
            addCriterion("custodianId between", value1, value2, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodianidNotBetween(String value1, String value2) {
            addCriterion("custodianId not between", value1, value2, "custodianid");
            return (Criteria) this;
        }

        public Criteria andCustodiannameIsNull() {
            addCriterion("custodianName is null");
            return (Criteria) this;
        }

        public Criteria andCustodiannameIsNotNull() {
            addCriterion("custodianName is not null");
            return (Criteria) this;
        }

        public Criteria andCustodiannameEqualTo(String value) {
            addCriterion("custodianName =", value, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodiannameNotEqualTo(String value) {
            addCriterion("custodianName <>", value, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodiannameGreaterThan(String value) {
            addCriterion("custodianName >", value, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodiannameGreaterThanOrEqualTo(String value) {
            addCriterion("custodianName >=", value, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodiannameLessThan(String value) {
            addCriterion("custodianName <", value, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodiannameLessThanOrEqualTo(String value) {
            addCriterion("custodianName <=", value, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodiannameLike(String value) {
            addCriterion("custodianName like", value, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodiannameNotLike(String value) {
            addCriterion("custodianName not like", value, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodiannameIn(List<String> values) {
            addCriterion("custodianName in", values, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodiannameNotIn(List<String> values) {
            addCriterion("custodianName not in", values, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodiannameBetween(String value1, String value2) {
            addCriterion("custodianName between", value1, value2, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodiannameNotBetween(String value1, String value2) {
            addCriterion("custodianName not between", value1, value2, "custodianname");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeIsNull() {
            addCriterion("custodianFee is null");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeIsNotNull() {
            addCriterion("custodianFee is not null");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeEqualTo(BigDecimal value) {
            addCriterion("custodianFee =", value, "custodianfee");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeNotEqualTo(BigDecimal value) {
            addCriterion("custodianFee <>", value, "custodianfee");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeGreaterThan(BigDecimal value) {
            addCriterion("custodianFee >", value, "custodianfee");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("custodianFee >=", value, "custodianfee");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeLessThan(BigDecimal value) {
            addCriterion("custodianFee <", value, "custodianfee");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("custodianFee <=", value, "custodianfee");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeIn(List<BigDecimal> values) {
            addCriterion("custodianFee in", values, "custodianfee");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeNotIn(List<BigDecimal> values) {
            addCriterion("custodianFee not in", values, "custodianfee");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("custodianFee between", value1, value2, "custodianfee");
            return (Criteria) this;
        }

        public Criteria andCustodianfeeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("custodianFee not between", value1, value2, "custodianfee");
            return (Criteria) this;
        }

        public Criteria andDecsIsNull() {
            addCriterion("decs is null");
            return (Criteria) this;
        }

        public Criteria andDecsIsNotNull() {
            addCriterion("decs is not null");
            return (Criteria) this;
        }

        public Criteria andDecsEqualTo(String value) {
            addCriterion("decs =", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsNotEqualTo(String value) {
            addCriterion("decs <>", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsGreaterThan(String value) {
            addCriterion("decs >", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsGreaterThanOrEqualTo(String value) {
            addCriterion("decs >=", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsLessThan(String value) {
            addCriterion("decs <", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsLessThanOrEqualTo(String value) {
            addCriterion("decs <=", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsLike(String value) {
            addCriterion("decs like", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsNotLike(String value) {
            addCriterion("decs not like", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsIn(List<String> values) {
            addCriterion("decs in", values, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsNotIn(List<String> values) {
            addCriterion("decs not in", values, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsBetween(String value1, String value2) {
            addCriterion("decs between", value1, value2, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsNotBetween(String value1, String value2) {
            addCriterion("decs not between", value1, value2, "decs");
            return (Criteria) this;
        }

        public Criteria andRemark1IsNull() {
            addCriterion("remark1 is null");
            return (Criteria) this;
        }

        public Criteria andRemark1IsNotNull() {
            addCriterion("remark1 is not null");
            return (Criteria) this;
        }

        public Criteria andRemark1EqualTo(String value) {
            addCriterion("remark1 =", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotEqualTo(String value) {
            addCriterion("remark1 <>", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1GreaterThan(String value) {
            addCriterion("remark1 >", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1GreaterThanOrEqualTo(String value) {
            addCriterion("remark1 >=", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1LessThan(String value) {
            addCriterion("remark1 <", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1LessThanOrEqualTo(String value) {
            addCriterion("remark1 <=", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1Like(String value) {
            addCriterion("remark1 like", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotLike(String value) {
            addCriterion("remark1 not like", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1In(List<String> values) {
            addCriterion("remark1 in", values, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotIn(List<String> values) {
            addCriterion("remark1 not in", values, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1Between(String value1, String value2) {
            addCriterion("remark1 between", value1, value2, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotBetween(String value1, String value2) {
            addCriterion("remark1 not between", value1, value2, "remark1");
            return (Criteria) this;
        }

        public Criteria andFlagIsNull() {
            addCriterion("flag is null");
            return (Criteria) this;
        }

        public Criteria andFlagIsNotNull() {
            addCriterion("flag is not null");
            return (Criteria) this;
        }

        public Criteria andFlagEqualTo(Integer value) {
            addCriterion("flag =", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotEqualTo(Integer value) {
            addCriterion("flag <>", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThan(Integer value) {
            addCriterion("flag >", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("flag >=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThan(Integer value) {
            addCriterion("flag <", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThanOrEqualTo(Integer value) {
            addCriterion("flag <=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagIn(List<Integer> values) {
            addCriterion("flag in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotIn(List<Integer> values) {
            addCriterion("flag not in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagBetween(Integer value1, Integer value2) {
            addCriterion("flag between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("flag not between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andRemark3IsNull() {
            addCriterion("remark3 is null");
            return (Criteria) this;
        }

        public Criteria andRemark3IsNotNull() {
            addCriterion("remark3 is not null");
            return (Criteria) this;
        }

        public Criteria andRemark3EqualTo(String value) {
            addCriterion("remark3 =", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3NotEqualTo(String value) {
            addCriterion("remark3 <>", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3GreaterThan(String value) {
            addCriterion("remark3 >", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3GreaterThanOrEqualTo(String value) {
            addCriterion("remark3 >=", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3LessThan(String value) {
            addCriterion("remark3 <", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3LessThanOrEqualTo(String value) {
            addCriterion("remark3 <=", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3Like(String value) {
            addCriterion("remark3 like", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3NotLike(String value) {
            addCriterion("remark3 not like", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3In(List<String> values) {
            addCriterion("remark3 in", values, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3NotIn(List<String> values) {
            addCriterion("remark3 not in", values, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3Between(String value1, String value2) {
            addCriterion("remark3 between", value1, value2, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3NotBetween(String value1, String value2) {
            addCriterion("remark3 not between", value1, value2, "remark3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}